<%@ Page language="c#" Codebehind="PageHistoric.aspx.cs" AutoEventWireup="True" Inherits="CrossFactory.SiteNote.Admin.PageHistoric" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 

<html>
  <head>
    <title>Page History</title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <LINK href="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Stylesheets/StyleSheet.aspx" type="text/css" rel="stylesheet" />
    <script language="javascript" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath  + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Scripts/popcalendar.aspx" type="text/javascript"></script>
	<script language="javascript">
			function load()
			{
				window.focus();			
				window.resizeTo(700,650);
			}
			function ClosePage()
			{
				window.opener.navigate(window.opener.location);
				window.close();
			}
			
			function ConfirmAction(message)
			{
			    if(confirm(message))
			    {
			        return true;
			    }
			    else
			    {
			        if (window.event)
		            {
                        window.event.cancelBubble = true;
                    }
                   return false;
			    }
			}
		</script>
  </head>
  <body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onload="load()">
	
    <form id="Form1" method="post" runat="server">
		<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td vAlign="top" width="100%" height="32">
						<table height="32" cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td align="left" width="154" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath  + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/TopBackground.gif" colSpan="2"
									height="19"><IMG height="19" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/TopLeft.gif" width="154"></td>
								<td align="right" width="100%" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/TopBackground.gif" height="32"
									rowSpan="2"><IMG height="32" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/logo.gif" width="165"></td>
							</tr>
							<tr height="13">
								<td width="7" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/LeftBackgroundTop.gif" height="13"><IMG height="13" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath %><%= CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="7"></td>
								<td width="147" height="13"><IMG height="13" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="147"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="100%">
					<td vAlign="top" width="100%" height="100%">
						<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td width="7" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/LeftBackgroundBottom.gif"><IMG height="1" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="7"></td>
								<td width="5"><IMG height="1" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="5"></td>
								<td id="PageContent" vAlign="top" align="left" width="100%" height="100%">
										<table cellSpacing="0" cellPadding="0" border="0" width="100%">
											<tr>
												<td width="100%" valign="middle" align="left" class="cmMessage">
													<table border="0">
														<tr>
															<td colspan="2" class="cmMessageTitle"><b>Page history :</b></td>
														</tr>
														<tr>
															<td colspan="2" height="15"></td>
														</tr>
														<tr>
															<td align="left" style="PADDING-LEFT:8px">
																<table class="pageHistoric" cellpadding="0" cellspacing="0">
																	<tr>
																	    <td>
																	        <div id="EditFormBlocInfos" runat="server"></div>
																	    </td>
																	</tr>
																	<tr>
																		<td>
																			<div id="EditFormBlocVersions" runat="server"></div>
																		</td>
																	</tr>
																	<tr>
																		<td>
																			<table style="border:1px solid #6F9DD9;" cellpadding="8" cellspacing="0">
																				<tr>
																				    <td colspan="5">
																					    <table cellpadding="0" cellspacing="0" width="100%">
                                                                                            <tr>
                                                                                                <td id="Td2">
                                                                                                    <table id="Table2" class="ms-toolbar" cellspacing="0" cellpadding="2" border="0">
                                                                                                        <tr id="Tr2">
                                                                                                            <td id="Td4">
                                                                                                                <table id="Table3" cellspacing="0" cellpadding="2" border="0">
                                                                                                                    <tr id="Tr3">
                                                                                                                        <td id="Td5" class="ms-toolbar">
                                                                                                                            Changes
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
																				</tr>
																				<tr>
																				    <td>
																				        <table class="logsTable" style="background-color:#EBF3FF;border-bottom:1px solid #C4C4C4;border-top:1px solid #C4C4C4;" cellpadding="0" cellspacing="0">
                                                                                            <tr>
                                                                                                <td></td>
                                                                                                <td>&nbsp;</td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td>Delete all changes : </td>
                                                                                                <td><asp:Button ID="btnDeleteAll" runat="server" Text="Delete" OnClientClick="return ConfirmAction('Delete all changes?');" OnClick="btnDeleteAll_Click" CausesValidation="false" /></td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td>Delete changes until : </td>
                                                                                                <td>
                                                                                                    <asp:TextBox ID="txtDeleteDate" runat="server" Width="75px" ></asp:TextBox><asp:Button ID="btnDeleteUntil" runat="server" Text="Delete" OnClientClick="return ConfirmAction('Delete changes until this included date?');" OnClick="btnDeleteUntil_Click" /> (<asp:Label ID="lblDateFormat" runat="server"></asp:Label>)
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td>Delete changes with type : </td>
                                                                                                <td>
                                                                                                    <asp:DropDownList ID="ddlChangesType" runat="server">
                                                                                                        <asp:ListItem Text="Contents" Value="Contents"></asp:ListItem>
                                                                                                        <asp:ListItem Text="Layout" Value="Layout"></asp:ListItem>
                                                                                                        <asp:ListItem Text="Permissions" Value="Permissions"></asp:ListItem>
                                                                                                        <asp:ListItem Text="Properties" Value="Properties"></asp:ListItem>
                                                                                                    </asp:DropDownList>
                                                                                                    <asp:Button ID="btnDeleteType" runat="server" Text="Delete" OnClientClick="return ConfirmAction('Delete changes with selected type?');" OnClick="btnDeleteType_Click" CausesValidation="false" />
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td></td>
                                                                                                <td><div id="divErrorDate" runat="server"></div></td>
                                                                                            </tr>
                                                                                        </table>
																				    </td>
																				</tr>
																				<tr>
																				    <td colspan="5">
																				        <table class="changesTable" cellpadding="0" cellspacing="0">
																				            <tr class="pageHistoricInfosTitle">
																					            <td width="222" style="padding-left:3px;"><strong>Date</strong></td>
																					            <td width="100"><strong>Type</strong></td>
																					            <td width="150"><strong>Modified by</strong></td>
																					            <td width="150"><strong>Infos</strong></td>
																					            <td width="150"><strong>Published by</strong></td>
																					        </tr>
																					        <asp:Repeater id="pageChangesRepeater" runat="server">
																					            <ItemTemplate>
																						            <tr class="pageHistoricInfos" style="background-color:#fff !important;padding-top:3px;" align="left">
																							            <td width="225"><%# CrossFactory.SiteNote.Components.Utils.ConvertToCultureDateFormat((DateTime)DataBinder.Eval(Container.DataItem,"Date")) %> </td>
																							            <td width="100"><%# DataBinder.Eval(Container.DataItem,"Type") %></td>
																							            <td width="150"><a style="color:#6F9DD9" href="mailto:<%# DataBinder.Eval(Container.DataItem,"ByEmail") %>"><%# DataBinder.Eval(Container.DataItem,"By") %></a></td>
																							            <td width="150"><%# DataBinder.Eval(Container.DataItem,"Infos") %></td>
																							            <td width="150"><%# DataBinder.Eval(Container.DataItem,"PublishBy") %></td>
																						            </tr>
																					            </ItemTemplate>
																				            </asp:Repeater>
																				            <tr>
                                                                                                <td id="tdPager" runat="server" style="padding-top:20px;background-color:#fff !important;" colspan="5" align="center"></td>
                                                                                            </tr>
																					    </table>
																					</td>
																				</tr>
																				
																			</table>
																		</td>
																	</tr>
																	<tr>
																		<td class="basketSeparation">&nbsp;</td>
																	</tr>
																</table>
															</td>	
														</tr>
													</table>
												</td>
											</tr>
										</table>
								</td>
								<td width="5"><IMG height="1" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="5"></td>
								<td width="11" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/RightBackground.gif"><IMG height="1" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="11"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="40">
					<td>
						<table height="100%" cellSpacing="0" cellPadding="0" border="0">
							<tr>
								<td height="8"><IMG src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/FooterLeft.gif"></td>
								<td width="100%">
									<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td width="100%" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/FooterCenter.gif" height="8"></td>
											<td height="8"><IMG height="8" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/FooterRight.gif" width="255"></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td align="right" width="100%" colSpan="3">
									<table style="BACKGROUND: url(<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/Footer.gif) no-repeat right 50%" height="100%" width="100%" border="0">
										<tr>
											<td width="100%"></td>
											<td></td>
											<td><input type="button" id="Close" value="Close" onclick="window.close();" style="WIDTH:75px;HEIGHT:23px" class="cmtext"></td>
											<td width="1"></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
     </form>
  </body>
</html>
